package com.example.messagecentre;

import org.mybatis.generator.api.dom.java.FullyQualifiedJavaType;
import org.mybatis.generator.internal.types.JavaTypeResolverDefaultImpl;

import java.sql.Types;

public class TinyIntJavaTypeResolver extends JavaTypeResolverDefaultImpl {

    public TinyIntJavaTypeResolver() {
        super();
        typeMap.put(Types.TINYINT, new JavaTypeResolverDefaultImpl
                .JdbcTypeInformation("TINYINT", new FullyQualifiedJavaType(Integer.class.getName())));

    }
}
